import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import {Launcher} from './launcher';
import {MainApp} from './main';
import {DetailPage} from './detail'

const Stack = createNativeStackNavigator();

function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator initialRouteName="Launch">
        <Stack.Screen name="Launch" component={Launcher} options={{headerShown: false}}/>
        <Stack.Screen name="Main" component={MainApp} options={{headerShown: false}}/>
        <Stack.Screen name="Detail" component={DetailPage}/>
      </Stack.Navigator>
    </NavigationContainer>
  );
}

export default App;